<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page contentType="text/html;charset=UTF-8" %>
<%@page import="com.lmpop.trade.ti_custword.*" %>
<%@page import="java.util.*" %>
<html>
  <head>
    <title>卖家反馈管理</title>
		<link href="/program/admin/index/css/style.css" rel="stylesheet" type="text/css">
		<script type="text/javascript" src="custword.js" ></script>
</head>

<body>

  <% 
  	String word_id="";
  	if(request.getParameter("word_id")!=null) word_id = request.getParameter("word_id");
  	Ti_custwordInfo ti_custwordInfo = new Ti_custwordInfo();
  	List list = ti_custwordInfo.getListByPk(word_id);
  	Hashtable map = new Hashtable();
  	if(list!=null && list.size()>0) map = (Hashtable)list.get(0);
  	
  	String f_title="",f_content="",f_cust_id="",f_date="",b_content="";
  	
  	if(map.get("f_title")!=null) f_title = map.get("f_title").toString();
  	if(map.get("f_content")!=null) f_content = map.get("f_content").toString();
  	if(map.get("f_cust_id")!=null) f_cust_id = map.get("f_cust_id").toString();
  	if(map.get("f_date")!=null) f_date = map.get("f_date").toString();
  	if(f_date.length()>19)f_date=f_date.substring(0,19);
  	if(map.get("b_content")!=null) b_content = map.get("b_content").toString();
  	String cust_name = ti_custwordInfo.getCustNameByCustID(f_cust_id);
	
	String s_title = "";
	if(request.getParameter("s_title")!=null && !request.getParameter("s_title").equals("")){
		s_title = request.getParameter("s_title");
	}
	String s_company = "";
	if(request.getParameter("s_company")!=null && !request.getParameter("s_company").equals("")){
		s_company = request.getParameter("s_company");
	}

	String iStart = "0";
	if(request.getParameter("iStart")!=null) iStart = request.getParameter("iStart");
	String para ="/program/admin/custword/index.jsp?s_title="+s_title+"&s_company="+s_company+"&iStart="+Integer.parseInt(iStart);
  %>
	
	<h1>回复卖家反馈</h1>
	<!--table width="100%" align="center" cellpadding="0" cellspacing="0" class="dl_so">
        <tr>
          <td width="9%" align="center"><img src="/program/admin/index/images/ban_01.gif" /></td>
          <td width="91%" align="left">
		  <h4>您可以按“行业”或“关键字”订阅</h4>
		  <span>1、填写关键字，您将及时了解与该产品相关的所有商机。</span><br/>
		  <span>2、为了更准确订阅，建议你选择产品所属的行业大类和行业子类。</span>
		  </td>
        </tr>
      </table-->
	<form action="/doTradeReg.do" method="post" name="addForm">
	<table width="100%" cellpadding="1" cellspacing="1" border="0" class="listtab">
		
		<tr>
			<td align="right" width="10%">
				反馈标题:
			</td>
			<td><%=f_title %></td>
		</tr>
		
		<tr>
			<td align="right" width="10%">
				反馈内容:
			</td>
			<td><%=f_content%></td>
		</tr>
		
		<tr>
			<td align="right" width="10%">
				反馈公司:
			</td>
			<td><%=cust_name%></td>
		</tr>
		
		<tr>
			<td align="right" width="10%">
				反馈时间:
			</td>
			<td><%=f_date%></td>
		</tr>
		
		<tr>
			<td align="right" width="10%">
				回复内容<font color="red">*</font>
			</td>
			<td>
				<textarea name="b_content"><%=b_content%></textarea>
				<script type="text/javascript" src="/program/plugins/ckeditor/ckeditor.js"></script>
				<script type="text/javascript">
					CKEDITOR.replace('b_content');
				</script>
				</td>
			
		</tr>
		
	</table>
	
	<table width="100%" cellpadding="0" cellspacing="0" border="0">
		<tr>
			<td align="center">
				<input type="hidden" name="bpm_id" value="3581" />
	  			<input type="hidden" name="word_id" value="<%=word_id%>" />
				<input type="hidden" name="jumpurl" value="<%=para%>" />
				<input type="submit" class="buttoncss" name="tradeSub" value="提交" onclick="return submitValue()"  />&nbsp;&nbsp;
				<input type="button" class="buttoncss" name="tradeRut" value="返回" onclick="window.location.href='<%=para%>';"/>
			</td>
		</tr>
	</table>
	</form>
</body>

</html>
